jeeps/gpsserial: Remove warning 'int format, DWORD arg (arg 2)'
authoroliskoli <oliskoli>
Thu, 18 Sep 2008 20:16:14 +0000 (20:16 +0000)
committeroliskoli <oliskoli>
Thu, 18 Sep 2008 20:16:14 +0000 (20:16 +0000)
jeeps/gpsserial.c

index 4e90f0939ed1eba74c66293653fd62adfb79da73..b8cfdfec524f7e612d1dcf0cdb29a1803a6aecb1 100644 (file)
@@ -208,7 +208,7 @@ int32 GPS_Serial_Write(gpsdevh *dh, const void *obuf, int size)
        }
        WriteFile (wsd->comport, obuf, size, &len, NULL);
        if (len != (DWORD) size) {
-               fatal ("Write error.   Wrote %d of %d bytes.\n", len, size);
+               fatal ("Write error.   Wrote %d of %d bytes.\n", (int)len, size);
        }
        return len;
 }